[%- pagetitle = 'PLUGIN_SOCIALMUSICDISCOVERY' | string; pageicon = 'PLUGIN_SOCIALMUSICDISCOVERY' -%]

[%- pwd_list = BLOCK -%]/
	<a href="[% webroot %]plugins/SocialMusicDiscovery/scanner.html?player=[% player | uri %]">[% "PLUGIN_SOCIALMUSICDISCOVERY_SCANNER" | string %]</a>
[% END -%]
[% PROCESS pageheader.html %]
		[% IF pluginSocialMusicDiscoveryScanning %]
			[% "PLUGIN_SOCIALMUSICDISCOVERY_SCANNING" | string %] [% pluginSocialMusicDiscoveryCurrent %] [% "OUT_OF" | string %] [% pluginSocialMusicDiscoveryTotal %]<br/>
			[% "PLUGIN_SOCIALMUSICDISCOVERY_CURRENT" | string %] [% pluginSocialMusicDiscoveryCurrentFile | utf8decode %]<br/>
		[% ELSE %]
			[% "PLUGIN_SOCIALMUSICDISCOVERY_SCANNED" | string %] [% pluginSocialMusicDiscoveryTotal %]<br/>
		[% END %]
			<br/><br/>
			<a href="[% webroot %]plugins/SocialMusicDiscovery/scanner.html">[% "PLUGIN_SOCIALMUSICDISCOVERY_REFRESH" | string %]</a>
			[% IF pluginSocialMusicDiscoveryScanning %]
			<a href="[% webroot %]plugins/SocialMusicDiscovery/scanner.html?stop=1">[% "PLUGIN_SOCIALMUSICDISCOVERY_STOP" | string %]</a>
			[% ELSE %]
			<a href="[% webroot %]plugins/SocialMusicDiscovery/scanner.html?start=1">[% "PLUGIN_SOCIALMUSICDISCOVERY_START" | string %]</a>
			[% END %]
			</td>
[% PROCESS pagefooter.html %]
